package com.vladimirkolarevic.eventplanner.service;

import java.io.Serializable;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.vladimirkolarevic.eventplanner.Comment;
import com.vladimirkolarevic.eventplanner.Event;
import com.vladimirkolarevic.eventplanner.User;

public interface EventsService {
	@CommitAfter
	Long addEvent(Event event);
	@CommitAfter
	void update(Event event);
	Event retriveEvent(Serializable id);
	List<Event> retrive();
	void atach(Event event);
	void delete(Comment comment);
	void delete(User user);
}
